﻿//***********************************************************************
 //* Module:  TbBstFastprocessBLL.cs
// * 作者:  曹荣芝
 //* Modified: 2013-05-06
// * Purpose: Definition of the Class XWG.JWBST.AuthBLL.TbBstFastprocessBLL
// ***********************************************************************/
using System;
using System.Data;
using XWG.JWBST;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using XWG.JWBST.JWBSTEntity;
using XWG.Framework.AuthUtility;
namespace XWG.JWBST.JWBSTBLL
{
	/// <summary>
	/// 
	/// </summary>
	public class TbBstFastprocessBLL
	{
        #region 删除操作
                /// <summary>
        /// 删除。
        /// </summary>
        /// <param name="fastid">要删除的的主键值。</param>
        /// <param name="userid">操作员。</param>
        /// <param name="isLog">是否写入日志。</param>
        /// <returns>是否成功 1 表示成功 负值代表失败</returns>
        public static ResultModel Delete(object fastid,object userid,bool isLog)
        {
               return JWBSTDAL.TbBstFastprocessDAL.Delete(fastid, userid, isLog);
        }
        #endregion
        #region 根据主键查询一条记录
        /// <summary>
        /// 获取实体
        /// </summary>
        /// <param name="fastid">主键</param>
        /// <returns>用户实体</returns>
        public static TbBstFastprocess Load(object fastid)
        {
              return JWBSTDAL.TbBstFastprocessDAL.Load(fastid); 
        }
        #endregion
        #region 查询操作
        /// <summary>
        /// 查询
        /// </summary>
        public static IList<TbBstFastprocess> SelectList()
        {
            return JWBSTDAL.TbBstFastprocessDAL.SelectList();
        }
        #endregion
        #region 插入操作
        /// <summary>
        /// 新增。
        /// </summary>
        /// <param name="info">待新增的信息。</param>
        /// <param name="userid">操作员。</param>
        /// <param name="isLog">是否写入日志。</param>
        /// <returns>新增是否成功的标示。（1：成功；负值失败）</returns>
        public static ResultModel Insert(TbBstFastprocess info, object userid, bool isLog)
        {
              return JWBSTDAL.TbBstFastprocessDAL.Insert(info,userid,isLog);
        }
		#endregion 
        #region 修改操作
        /// <summary>
        /// 修改。
        /// </summary>
        /// <param name="info">待修改的信息。</param>
        /// <param name="userid">操作员。</param>
        /// <param name="isLog">是否写入日志。</param>
        /// <returns>修改是否成功的标示。（1：成功；负值失败）</returns>
        public static ResultModel Update(TbBstFastprocess info, object userid, bool isLog)
        {
           return JWBSTDAL.TbBstFastprocessDAL.Update(info, userid, isLog);
        }
		#endregion 
         /// <summary>
        /// 获取最新流水号
        /// </summary>
        /// <returns></returns>
        public static string GetLastLSH()
        {
            return XWG.JWBST.JWBSTDAL.TbBstFastprocessDAL.GetLastLSH();
        }

        /// <summary>
        /// 上传音频路径
        /// </summary>
        /// <returns></returns>
        public static bool UpSound(string fastsound, string LSH)
        {
           return XWG.JWBST.JWBSTDAL.TbBstFastprocessDAL.UpSound(fastsound, LSH);
        }

        public static IList<TbBstDic> GetDictionaryByCode(string Code)
        {
            return XWG.JWBST.JWBSTDAL.TbBstFastprocessDAL.GetDictionaryByCode(Code);
        }

        /// <summary>
        /// 根据Code获取字典
        /// </summary>
        public static IList<TbBstDic> GetDicByCodeAndParentnode(string Code, string Parentnode)
        {
            return XWG.JWBST.JWBSTDAL.TbBstFastprocessDAL.GetDicByCodeAndParentnode(Code, Parentnode);
        }

          /// <summary>
        /// 根据手机号查询历史
        /// </summary>
        /// <param name="phone"></param>
        /// <returns></returns>
        public static List<TbBstFastprocess> GetInfoByPhone(string phone)
        {
            return XWG.JWBST.JWBSTDAL.TbBstFastprocessDAL.GetInfoByPhone(phone);
        }

        /// <summary>
        /// 根据地区获取未审核事故
        /// </summary>
        /// <param name="ad"></param>
        /// <returns></returns>
        public static int GetUnAuditByAd(string ad)
        {
            return XWG.JWBST.JWBSTDAL.TbBstFastprocessDAL.GetUnAuditByAd(ad);
        }

            /// <summary>
        /// 根据流水号号查询审核信息
        /// </summary>
        /// <param name="phone"></param>
        /// <returns></returns>
        public static TbBstFastprocess GetAduitByLSH(string LSH)
        {
            return XWG.JWBST.JWBSTDAL.TbBstFastprocessDAL.GetAduitByLSH(LSH);
        }

        public static string GetLSH(string tablename)
        {
            return XWG.JWBST.JWBSTDAL.TbBstFastprocessDAL.GetLSH(tablename);
        }
	}
}
